<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MCP 基础概念与核心原理介绍</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
        }
        
        .header {
            text-align: center;
            margin-bottom: 40px;
            position: relative;
        }
        
        .header h1 {
            color: #2c3e50;
            font-size: 2.5em;
            margin-bottom: 10px;
            font-weight: 700;
        }
        
        .header .subtitle {
            color: #7f8c8d;
            font-size: 1.2em;
            margin-bottom: 20px;
        }
        
        .nav-tabs {
            display: flex;
            justify-content: center;
            margin-bottom: 30px;
            border-bottom: 2px solid #ecf0f1;
        }
        
        .nav-tab {
            padding: 12px 24px;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 1.1em;
            color: #7f8c8d;
            border-bottom: 3px solid transparent;
            transition: all 0.3s ease;
            margin: 0 10px;
        }
        
        .nav-tab.active {
            color: #3498db;
            border-bottom-color: #3498db;
            font-weight: 600;
        }
        
        .nav-tab:hover {
            color: #2980b9;
            transform: translateY(-2px);
        }
        
        .section {
            display: none;
            animation: fadeIn 0.5s ease-in-out;
        }
        
        .section.active {
            display: block;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .card {
            background: white;
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
            border-left: 5px solid #3498db;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        }
        
        .card h3 {
            color: #2c3e50;
            font-size: 1.5em;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
        }
        
        .card h4 {
            color: #34495e;
            font-size: 1.2em;
            margin: 20px 0 10px 0;
            padding-left: 15px;
            border-left: 3px solid #e74c3c;
        }
        
        .icon {
            width: 30px;
            height: 30px;
            margin-right: 10px;
            background: linear-gradient(135deg, #3498db, #2980b9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
        }
        
        .architecture-diagram {
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            border-radius: 15px;
            padding: 30px;
            margin: 25px 0;
            text-align: center;
            position: relative;
        }
        
        .arch-components {
            display: flex;
            justify-content: space-around;
            align-items: center;
            flex-wrap: wrap;
            gap: 30px;
            margin: 30px 0;
        }
        
        .component {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            text-align: center;
            min-width: 150px;
            border: 2px solid transparent;
            transition: all 0.3s ease;
        }
        
        .component:hover {
            border-color: #3498db;
            transform: scale(1.05);
        }
        
        .component.client {
            border-left: 5px solid #e74c3c;
        }
        
        .component.server {
            border-left: 5px solid #27ae60;
        }
        
        .component.transport {
            border-left: 5px solid #f39c12;
        }
        
        .component h5 {
            color: #2c3e50;
            margin-bottom: 10px;
            font-size: 1.1em;
        }
        
        .component p {
            color: #7f8c8d;
            font-size: 0.9em;
        }
        
        .arrow {
            display: flex;
            align-items: center;
            justify-content: center;
            color: #3498db;
            font-size: 2em;
            font-weight: bold;
        }
        
        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin: 25px 0;
        }
        
        .feature-item {
            background: linear-gradient(135deg, #74b9ff, #0984e3);
            color: white;
            padding: 20px;
            border-radius: 12px;
            text-align: center;
            transition: transform 0.3s ease;
        }
        
        .feature-item:hover {
            transform: translateY(-5px);
        }
        
        .timeline {
            position: relative;
            margin: 30px 0;
        }
        
        .timeline::before {
            content: '';
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 2px;
            background: #3498db;
            transform: translateX(-50%);
        }
        
        .timeline-item {
            display: flex;
            align-items: center;
            margin-bottom: 30px;
            position: relative;
        }
        
        .timeline-content {
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            width: 45%;
            position: relative;
        }
        
        .timeline-item:nth-child(odd) .timeline-content {
            margin-right: auto;
        }
        
        .timeline-item:nth-child(even) .timeline-content {
            margin-left: auto;
        }
        
        .timeline-dot {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 15px;
            height: 15px;
            background: #3498db;
            border-radius: 50%;
            border: 3px solid white;
            box-shadow: 0 0 0 3px #3498db;
        }
        
        .code-block {
            background: #2c3e50;
            color: #ecf0f1;
            padding: 20px;
            border-radius: 8px;
            font-family: 'Courier New', monospace;
            margin: 15px 0;
            overflow-x: auto;
        }
        
        .highlight {
            background: linear-gradient(120deg, rgba(255, 193, 7, 0.3) 0%, rgba(255, 193, 7, 0.1) 100%);
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 600;
        }
        
        .badge {
            display: inline-block;
            background: #e74c3c;
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.8em;
            font-weight: 600;
            margin: 5px;
        }
        
        .badge.new {
            background: #27ae60;
        }
        
        .badge.stable {
            background: #3498db;
        }
        
        @media (max-width: 768px) {
            .arch-components {
                flex-direction: column;
            }
            
            .timeline::before {
                left: 20px;
            }
            
            .timeline-content {
                width: calc(100% - 50px);
                margin-left: 50px !important;
            }
            
            .timeline-dot {
                left: 20px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>🔗 Model Context Protocol (MCP)</h1>
            <p class="subtitle">AI应用与外部系统的标准化连接协议</p>
            <div style="margin: 20px 0;">
                <span class="badge new">2024年11月发布</span>
                <span class="badge stable">开源标准</span>
                <span class="badge">JSON-RPC 2.0</span>
            </div>
        </div>
        
        <div class="nav-tabs">
            <button class="nav-tab active" onclick="showSection('overview')">协议概述</button>
            <button class="nav-tab" onclick="showSection('architecture')">技术架构</button>
            <button class="nav-tab" onclick="showSection('ecosystem')">开发生态</button>
        </div>
        
        <!-- 协议概述部分 -->
        <div id="overview" class="section active">
            <div class="card">
                <h3><span class="icon">📋</span>定义与背景</h3>
                <p><strong>MCP（Model Context Protocol）</strong>是由Anthropic在2024年11月推出的开源标准协议，旨在标准化AI应用与外部工具、数据源和系统之间的连接方式。</p>
                <h4>🎯 核心使命</h4>
                <p>MCP就像是<span class="highlight">"AI集成的USB-C接口"</span>——提供统一、标准化的方式让大语言模型（LLM）与各种外部资源进行动态交互。</p>
                <h4>🆚 与传统API的区别</h4>
                <ul style="margin: 15px 0; padding-left: 20px;">
                    <li><strong>双向通信</strong>：不仅支持请求-响应，还支持服务器主动推送</li>
                    <li><strong>上下文感知</strong>：能够维护会话状态和上下文信息</li>
                    <li><strong>标准化接口</strong>：统一的工具、资源和提示规范</li>
                    <li><strong>实时交互</strong>：支持流式数据传输和进度更新</li>
                </ul>
            </div>
            
            <div class="card">
                <h3><span class="icon">⚡</span>核心特性</h3>
                <div class="feature-grid">
                    <div class="feature-item">
                        <h4>🧠 上下文感知</h4>
                        <p>智能维护会话状态，提供连续性的交互体验</p>
                    </div>
                    <div class="feature-item">
                        <h4>🔄 动态交互</h4>
                        <p>支持实时双向通信，服务器可主动发送通知</p>
                    </div>
                    <div class="feature-item">
                        <h4>📱 标准化协议</h4>
                        <p>基于JSON-RPC 2.0，确保跨平台兼容性</p>
                    </div>
                    <div class="feature-item">
                        <h4>🔧 可扩展设计</h4>
                        <p>模块化架构，支持自定义工具和资源</p>
                    </div>
                </div>
            </div>
            
            <div class="card">
                <h3><span class="icon">🌟</span>重要地位</h3>
                <p>MCP正在成为AI开发生态中的重要基础设施：</p>
                <div class="timeline">
                    <div class="timeline-item">
                        <div class="timeline-content">
                            <h4>企业级应用</h4>
                            <p>Microsoft Copilot Studio已全面支持MCP，AWS推出多个MCP服务器</p>
                        </div>
                        <div class="timeline-dot"></div>
                    </div>
                    <div class="timeline-item">
                        <div class="timeline-content">
                            <h4>医疗行业</h4>
                            <p>支持安全、合规的临床数据实时访问，提升医疗AI应用效率</p>
                        </div>
                        <div class="timeline-dot"></div>
                    </div>
                    <div class="timeline-item">
                        <div class="timeline-content">
                            <h4>开发工具</h4>
                            <p>VS Code、Spring AI等主流开发平台集成MCP支持</p>
                        </div>
                        <div class="timeline-dot"></div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 技术架构部分 -->
        <div id="architecture" class="section">
            <div class="card">
                <h3><span class="icon">🏗️</span>核心架构模式</h3>
                <div class="architecture-diagram">
                    <h4 style="color: #2c3e50; margin-bottom: 20px;">MCP 客户端-服务器架构</h4>
                    <div class="arch-components">
                        <div class="component client">
                            <h5>🖥️ MCP客户端</h5>
                            <p>AI应用/语言模型<br>发起连接和请求</p>
                        </div>
                        <div class="arrow">↔️</div>
                        <div class="component transport">
                            <h5>📡 传输层</h5>
                            <p>STDIO / HTTP+SSE<br>JSON-RPC 2.0</p>
                        </div>
                        <div class="arrow">↔️</div>
                        <div class="component server">
                            <h5>⚙️ MCP服务器</h5>
                            <p>工具/资源/提示<br>业务逻辑处理</p>
                        </div>
                    </div>
                </div>
                
                <h4>🔗 架构特点</h4>
                <ul style="margin: 15px 0; padding-left: 20px;">
                    <li><strong>客户端-服务器模式</strong>：采用经典的C/S架构，职责分离清晰</li>
                    <li><strong>双向通信</strong>：客户端和服务器都可以主动发起通信</li>
                    <li><strong>基于JSON-RPC 2.0</strong>：使用成熟的标准化消息格式</li>
                    <li><strong>多客户端支持</strong>：一个服务器可同时服务多个客户端</li>
                </ul>
            </div>
            
            <div class="card">
                <h3><span class="icon">🧩</span>核心组件详解</h3>
                
                <h4>🖥️ MCP主机/客户端（Host/Client）</h4>
                <div style="background: #f8f9fa; padding: 15px; border-radius: 8px; margin: 10px 0;">
                    <p><strong>功能职责：</strong></p>
                    <ul style="margin: 10px 0; padding-left: 20px;">
                        <li>通常是AI应用或语言模型（如Claude、GPT等）</li>
                        <li>发起与MCP服务器的连接</li>
                        <li>管理会话生命周期和请求调度</li>
                        <li>使用服务器提供的工具、资源和提示</li>
                    </ul>
                </div>
                
                <h4>⚙️ MCP服务器（Server）</h4>
                <div style="background: #f8f9fa; padding: 15px; border-radius: 8px; margin: 10px 0;">
                    <p><strong>核心能力：</strong></p>
                    <ul style="margin: 10px 0; padding-left: 20px;">
                        <li><strong>工具（Tools）</strong>：提供可执行的函数和操作</li>
                        <li><strong>资源（Resources）</strong>：暴露可访问的数据和内容</li>
                        <li><strong>提示（Prompts）</strong>：提供结构化的提示模板</li>
                        <li><strong>并发处理</strong>：同时处理多个客户端连接</li>
                    </ul>
                </div>
            </div>
            
            <div class="card">
                <h3><span class="icon">🔄</span>通信机制</h3>
                
                <h4>📡 传输层支持</h4>
                <div class="feature-grid">
                    <div class="feature-item" style="background: linear-gradient(135deg, #fd79a8, #e84393);">
                        <h4>STDIO</h4>
                        <p>标准输入输出<br>适用于本地集成</p>
                    </div>
                    <div class="feature-item" style="background: linear-gradient(135deg, #fdcb6e, #e17055);">
                        <h4>HTTP+SSE</h4>
                        <p>HTTP请求+服务器推送<br>适用于远程连接</p>
                    </div>
                </div>
                
                <h4>📨 消息类型</h4>
                <div class="code-block">
<strong>1. 请求/响应消息（Request/Response）</strong>
{
  "jsonrpc": "2.0",
  "id": "req_001",
  "method": "tools/call",
  "params": {
    "name": "file_reader",
    "arguments": {"path": "/data/file.txt"}
  }
}

<strong>2. 通知消息（Notifications）</strong>
{
  "jsonrpc": "2.0",
  "method": "notifications/progress",
  "params": {
    "progressToken": "upload_123",
    "progress": 75
  }
}

<strong>3. 进度更新（Progress）</strong>
{
  "jsonrpc": "2.0",
  "method": "progress/update",
  "params": {
    "token": "task_456",
    "status": "processing",
    "completed": 3,
    "total": 10
  }
}
                </div>
                
                <h4>🔄 会话管理流程</h4>
                <div class="timeline">
                    <div class="timeline-item">
                        <div class="timeline-content">
                            <h4>1. 连接建立</h4>
                            <p>客户端与服务器建立通信连接</p>
                        </div>
                        <div class="timeline-dot"></div>
                    </div>
                    <div class="timeline-item">
                        <div class="timeline-content">
                            <h4>2. 能力协商</h4>
                            <p>交换支持的功能和协议版本</p>
                        </div>
                        <div class="timeline-dot"></div>
                    </div>
                    <div class="timeline-item">
                        <div class="timeline-content">
                            <h4>3. 服务发现</h4>
                            <p>获取可用的工具、资源和提示列表</p>
                        </div>
                        <div class="timeline-dot"></div>
                    </div>
                    <div class="timeline-item">
                        <div class="timeline-content">
                            <h4>4. 交互执行</h4>
                            <p>执行具体的业务操作和数据交换</p>
                        </div>
                        <div class="timeline-dot"></div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 开发生态部分 -->
        <div id="ecosystem" class="section">
            <div class="card">
                <h3><span class="icon">🛠️</span>开发工具链</h3>
                
                <h4>📦 SDK和开发框架</h4>
                <div class="feature-grid">
                    <div class="feature-item" style="background: linear-gradient(135deg, #00cec9, #00b894);">
                        <h4>Python SDK</h4>
                        <p>官方Python开发工具包<br>完整的客户端/服务器支持</p>
                    </div>
                    <div class="feature-item" style="background: linear-gradient(135deg, #a29bfe, #6c5ce7);">
                        <h4>JavaScript SDK</h4>
                        <p>Node.js和浏览器支持<br>TypeScript类型定义</p>
                    </div>
                    <div class="feature-item" style="background: linear-gradient(135deg, #fd79a8, #e84393);">
                        <h4>Java SDK</h4>
                        <p>Spring AI集成<br>企业级开发支持</p>
                    </div>
                    <div class="feature-item" style="background: linear-gradient(135deg, #fdcb6e, #e17055);">
                        <h4>Go SDK</h4>
                        <p>高性能服务器开发<br>云原生支持</p>
                    </div>
                </div>
                
                <h4>🔧 调试和测试工具</h4>
                <ul style="margin: 15px 0; padding-left: 20px;">
                    <li><strong>MCP Inspector</strong>：图形化调试界面，实时查看消息交换</li>
                    <li><strong>Protocol Validator</strong>：验证消息格式和协议合规性</li>
                    <li><strong>Mock Server</strong>：用于测试的模拟MCP服务器</li>
                    <li><strong>Performance Profiler</strong>：性能分析和优化工具</li>
                </ul>
                
                <h4>☁️ 部署和监控方案</h4>
                <div style="background: #f8f9fa; padding: 15px; border-radius: 8px; margin: 10px 0;">
                    <p><strong>云平台支持：</strong></p>
                    <ul style="margin: 10px 0; padding-left: 20px;">
                        <li><span class="highlight">AWS</span>：Lambda、EKS、ECS等多种MCP服务器部署方案</li>
                        <li><span class="highlight">Azure</span>：Container Apps、Functions集成</li>
                        <li><span class="highlight">GCP</span>：Cloud Run、GKE原生支持</li>
                        <li><span class="highlight">Docker</span>：容器化部署和编排</li>
                    </ul>
                </div>
            </div>
            
            <div class="card">
                <h3><span class="icon">🎯</span>应用场景</h3>
                
                <h4>🤖 AI助手增强</h4>
                <div style="background: linear-gradient(135deg, #74b9ff, #0984e3); color: white; padding: 20px; border-radius: 12px; margin: 15px 0;">
                    <p><strong>典型应用：</strong></p>
                    <ul style="margin: 10px 0; padding-left: 20px;">
                        <li>Claude Desktop集成本地文件系统访问</li>
                        <li>ChatGPT插件生态系统扩展</li>
                        <li>企业知识库智能问答系统</li>
                        <li>代码助手工具链集成</li>
                    </ul>
                </div>
                
                <h4>🏢 企业内部工具集成</h4>
                <div class="timeline">
                    <div class="timeline-item">
                        <div class="timeline-content">
                            <h4>CRM系统集成</h4>
                            <p>AI助手直接访问客户数据，提供个性化服务建议</p>
                        </div>
                        <div class="timeline-dot"></div>
                    </div>
                    <div class="timeline-item">
                        <div class="timeline-content">
                            <h4>ERP系统对接</h4>
                            <p>智能财务分析、库存管理和供应链优化</p>
                        </div>
                        <div class="timeline-dot"></div>
                    </div>
                    <div class="timeline-item">
                        <div class="timeline-content">
                            <h4>DevOps工具链</h4>
                            <p>自动化部署、监控告警和故障诊断</p>
                        </div>
                        <div class="timeline-dot"></div>
                    </div>
                </div>
                
                <h4>🔄 跨平台数据交换</h4>
                <div class="arch-components">
                    <div class="component">
                        <h5>📊 数据仓库</h5>
                        <p>统一数据访问接口</p>
                    </div>
                    <div class="arrow">↔️</div>
                    <div class="component">
                        <h5>🔄 MCP网关</h5>
                        <p>协议转换和路由</p>
                    </div>
                    <div class="arrow">↔️</div>
                    <div class="component">
                        <h5>📱 多端应用</h5>
                        <p>Web/Mobile/Desktop</p>
                    </div>
                </div>
            </div>
            
            <div class="card">
                <h3><span class="icon">📈</span>生态发展趋势</h3>
                <div class="feature-grid">
                    <div class="feature-item" style="background: linear-gradient(135deg, #00b894, #00cec9);">
                        <h4>🚀 快速增长</h4>
                        <p>2025年已有数百个开源MCP服务器项目</p>
                    </div>
                    <div class="feature-item" style="background: linear-gradient(135deg, #e17055, #fdcb6e);">
                        <h4>🏭 企业采用</h4>
                        <p>Microsoft、AWS等大厂全面支持</p>
                    </div>
                    <div class="feature-item" style="background: linear-gradient(135deg, #6c5ce7, #a29bfe);">
                        <h4>🌐 标准化</h4>
                        <p>成为AI应用集成的事实标准</p>
                    </div>
                    <div class="feature-item" style="background: linear-gradient(135deg, #e84393, #fd79a8);">
                        <h4>🔮 未来展望</h4>
                        <p>AI Agent时代的核心基础设施</p>
                    </div>
                </div>
                
                <div style="background: linear-gradient(135deg, #667eea, #764ba2); color: white; padding: 25px; border-radius: 15px; margin: 20px 0; text-align: center;">
                    <h4 style="color: white; margin-bottom: 15px;">🌟 MCP生态系统统计 (2025年)</h4>
                    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin-top: 20px;">
                        <div>
                            <div style="font-size: 2em; font-weight: bold;">500+</div>
                            <div>开源MCP服务器</div>
                        </div>
                        <div>
                            <div style="font-size: 2em; font-weight: bold;">50+</div>
                            <div>企业级部署</div>
                        </div>
                        <div>
                            <div style="font-size: 2em; font-weight: bold;">20+</div>
                            <div>编程语言支持</div>
                        </div>
                        <div>
                            <div style="font-size: 2em; font-weight: bold;">100K+</div>
                            <div>开发者社区</div>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="card">
                <h3><span class="icon">💡</span>最佳实践指南</h3>
                
                <h4>🔧 开发建议</h4>
                <div style="background: #fff3cd; padding: 15px; border-radius: 8px; border-left: 5px solid #ffc107; margin: 15px 0;">
                    <p><strong>⚠️ 安全考虑：</strong></p>
                    <ul style="margin: 10px 0; padding-left: 20px;">
                        <li>实施严格的身份验证和授权机制</li>
                        <li>对所有输入数据进行验证和清理</li>
                        <li>使用HTTPS传输敏感数据</li>
                        <li>定期更新SDK和依赖项</li>
                    </ul>
                </div>
                
                <div style="background: #d1ecf1; padding: 15px; border-radius: 8px; border-left: 5px solid #17a2b8; margin: 15px 0;">
                    <p><strong>🚀 性能优化：</strong></p>
                    <ul style="margin: 10px 0; padding-left: 20px;">
                        <li>合理使用连接池和缓存机制</li>
                        <li>实现异步处理和批量操作</li>
                        <li>监控和限制资源使用</li>
                        <li>优化JSON序列化性能</li>
                    </ul>
                </div>
                
                <h4>📚 学习资源</h4>
                <div class="feature-grid">
                    <div class="feature-item" style="background: linear-gradient(135deg, #20bf6b, #0fb9b1);">
                        <h4>📖 官方文档</h4>
                        <p>详细的协议规范和API参考</p>
                    </div>
                    <div class="feature-item" style="background: linear-gradient(135deg, #3742fa, #2f3542);">
                        <h4>🎥 视频教程</h4>
                        <p>从入门到高级的完整课程</p>
                    </div>
                    <div class="feature-item" style="background: linear-gradient(135deg, #ff6b6b, #ee5a52);">
                        <h4>💻 示例代码</h4>
                        <p>丰富的开源项目和模板</p>
                    </div>
                    <div class="feature-item" style="background: linear-gradient(135deg, #ffa726, #ff9800);">
                        <h4>👥 社区支持</h4>
                        <p>活跃的开发者论坛和Discord</p>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 总结卡片 -->
        <div class="card" style="background: linear-gradient(135deg, #667eea, #764ba2); color: white; margin-top: 40px;">
            <h3 style="color: white;"><span class="icon">🎯</span>MCP协议总结</h3>
            <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 20px;">
                <div>
                    <h4 style="color: #fff;">🔑 核心价值</h4>
                    <p>标准化AI应用与外部系统的连接，降低集成复杂度，提升开发效率</p>
                </div>
                <div>
                    <h4 style="color: #fff;">⚡ 技术优势</h4>
                    <p>双向通信、上下文感知、实时交互、跨平台兼容</p>
                </div>
                <div>
                    <h4 style="color: #fff;">🚀 发展前景</h4>
                    <p>AI Agent时代的基础设施，将成为企业AI应用的标准接口</p>
                </div>
                <div>
                    <h4 style="color: #fff;">🎨 应用场景</h4>
                    <p>AI助手、企业工具集成、跨平台数据交换、智能自动化</p>
                </div>
            </div>
            <div style="text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.3);">
                <p style="font-size: 1.1em;"><strong>🌟 MCP正在重新定义AI应用的连接方式，开启智能化集成的新时代</strong></p>
            </div>
        </div>
    </div>
    
    <script>
        function showSection(sectionId) {
            // 隐藏所有section
            const sections = document.querySelectorAll('.section');
            sections.forEach(section => {
                section.classList.remove('active');
            });
            
            // 移除所有tab的active状态
            const tabs = document.querySelectorAll('.nav-tab');
            tabs.forEach(tab => {
                tab.classList.remove('active');
            });
            
            // 显示目标section
            document.getElementById(sectionId).classList.add('active');
            
            // 激活对应的tab
            event.target.classList.add('active');
        }
        
        // 添加一些交互动画
        document.addEventListener('DOMContentLoaded', function() {
            // 为卡片添加悬停效果
            const cards = document.querySelectorAll('.card');
            cards.forEach(card => {
                card.addEventListener('mouseenter', function() {
                    this.style.transform = 'translateY(-5px)';
                });
                
                card.addEventListener('mouseleave', function() {
                    this.style.transform = 'translateY(0)';
                });
            });
            
            // 为组件添加点击效果
            const components = document.querySelectorAll('.component');
            components.forEach(component => {
                component.addEventListener('click', function() {
                    this.style.transform = 'scale(1.1)';
                    setTimeout(() => {
                        this.style.transform = 'scale(1.05)';
                    }, 150);
                });
            });
            
            // 添加滚动动画
            const observerOptions = {
                threshold: 0.1,
                rootMargin: '0px 0px -50px 0px'
            };
            
            const observer = new IntersectionObserver(function(entries) {
                entries.forEach(entry => {
                    if (entry.isIntersecting) {
                        entry.target.style.opacity = '1';
                        entry.target.style.transform = 'translateY(0)';
                    }
                });
            }, observerOptions);
            
            // 观察所有卡片
            cards.forEach(card => {
                card.style.opacity = '0';
                card.style.transform = 'translateY(20px)';
                card.style.transition = 'opacity 0.6s ease, transform 0.6s ease';
                observer.observe(card);
            });
        });
    </script>
</body>
</html>